#!/bin/bash
num_cvd_accounts=20

iptables=$(which iptables-legacy)
iptables=${iptables:-iptables}

for i in $(seq ${num_cvd_accounts}); do
    tap="$(printf cvd-mtap-%02d $i)"
    $iptables -t nat -D PREROUTING -i $tap -p tcp -j REDIRECT --to-port $((8800 + $i))
done
